package com.zrq.secondkill.service;

import com.zrq.secondkill.error.BusinessException;
import com.zrq.secondkill.service.model.UserModel;

public interface UserService {
    UserModel validateLogin(String telphone, String encrptPassword) throws BusinessException;

    UserModel getUserById(Integer userId);

    UserModel getUserByIdInCache(Integer userId);

    /**
     * 验证userId是否存在
     *
     * @param userId
     * @return
     */
    Boolean validateUserId(Integer userId);
}
